home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Multimedia / Movie3.0 / Source / xanim / xanim_fli.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-02  |  1.9 KB  |  74 lines

  1.  
  2. /*
  3.  * xanim_fli.h
  4.  *
  5.  * Copyright (C) 1990,1991,1992,1993,1994 by Mark Podlipec. 
  6.  * All rights reserved.
  7.  *
  8.  * This software may be freely copied, modified and redistributed without
  9.  * fee for non-commerical purposes provided that this copyright notice is
  10.  * preserved intact on all copies and modified copies.
  11.  * 
  12.  * There is no warranty or other guarantee of fitness of this software.
  13.  * It is provided solely "as is". The author(s) disclaim(s) all
  14.  * responsibility and liability with respect to this software's usage
  15.  * or its effect upon hardware or computer systems.
  16.  *
  17.  */
  18.  
  19. #include "xanim.h"
  20.  
  21. typedef struct
  22. {
  23.   LONG size;      /*  0 size 4  */
  24.   LONG magic;     /*  4 size 2  */
  25.   LONG frames;    /*  6 size 2  */
  26.   LONG width;     /*  8 size 2  */
  27.   LONG height;    /* 10 size 2  */
  28.   LONG flags;     /* 12 size 2  */
  29.   LONG res1;      /* 14 size 2  */
  30.   LONG speed;     /* 16 size 2  */
  31.   LONG next;      /* 18 size 4  */
  32.   LONG frit;      /* 22 size 4  */
  33.                  /* 26 size 102 future enhancement */
  34. } Fli_Header;
  35.  
  36. typedef struct
  37. {
  38.   LONG size;      /*  0 size 4 size of chunk */
  39.   LONG magic;     /*  4 size 2 */
  40.   LONG chunks;    /*  4 size 2 number of chunks in frame */
  41.                   /*  4 size 8 future*/
  42. } Fli_Frame_Header;
  43.  
  44. typedef struct FLI_FRAME_STRUCT
  45. {
  46.   ULONG time;
  47.   XA_ACTION *act;
  48.   struct FLI_FRAME_STRUCT *next;
  49. } FLI_FRAME;
  50.  
  51. #define CHUNK_4          4
  52. #define FLI_LC7          7
  53. #define FLI_COLOR       11
  54. #define FLI_LC          12
  55. #define FLI_BLACK       13
  56. #define FLI_BRUN        15
  57. #define FLI_COPY        16
  58. #define FLI_MINI    18
  59.  
  60. #define FLI_MAX_COLORS  256
  61.  
  62. extern void Decode_Fli_BRUN();
  63. extern void Decode_Fli_LC();
  64. extern void Fli_Buffer_Action();
  65. extern ULONG Fli_Read_File();
  66. extern LONG Is_FLI_File();
  67.  
  68. /* Words(32 bits) and HalfWords(16 bits) are stored little endian
  69.  * according to the FLI spec.
  70.  */
  71. #define GETWORD      Fli_Get_Word
  72. #define GETHALFWORD  Fli_Get_HalfWord
  73.  
  74.